#pragma once
#include "c_class.h"

class PngItem{
public:
	BYTE *ptr;
	int size;
	~PngItem(){
		delete[] ptr;
	}
};
class  __declspec(dllexport) ResourceFactory
{
public:
	BOOL GetData(const char*,const char *,int,CArray<PngItem*>*);
	//BOOL GetPngCategory(CArray<CString>*);
	BOOL LoadFile(const CString&);
	void CloseFile();
	void LoadMemImage(void *img,void *pMemData,long len);
private:
	CFile m_file;
private:
	SINGLETON_DECL(ResourceFactory)
};
